package cn.enjoy.design.behavior.chain;

/**
 * @author K
 * @date 2021/11/16 22:29
 */
public class ChainTest {
    public static void main(String[] args) {
        IPCheck ipCheck = new IPCheck();
        SecurityCheck securityCheck = new SecurityCheck();
        ParamCheck paramCheck = new ParamCheck();
        ipCheck.setAbstractCheck(securityCheck);
        securityCheck.setAbstractCheck(paramCheck);

        ipCheck.check();
    }
}
